import request from '../../request'

// 获取科室对应关系
export function getBdPerformance(params) {
  return request({
    url: 'bdPerformance/getBdPerformance',
    method: 'POST',
    data: params
  })
}

// 获取科室对应关系
export function getDepartment(params) {
  return request({
    url: 'bdPerformance/getDepartment',
    method: 'GET',
    params
  })
}

// 科室下拉框
export function getPDepartment(params) {
  return request({
    url: 'bdPerformance/getPDepartment',
    method: 'GET',
    params
  })
}

// 添加科室部门对应数据
export function addPerformance(params) {
  return request({
    url: 'bdPerformance/addPerformance',
    method: 'post',
    data: params
  })
}

// 删除科室部门对应数据
export function batchDeletePerformance(params) {
  return request({
    url: 'bdPerformance/batchDeletePerformance',
    method: 'post',
    data: params
  })
}

// 获取科室绩效字典
export function getDepartmentSourceWithPerformance(params) {
  return request({
    url: 'bdPerformance/getDepartmentSourceWithPerformance',
    method: 'get'
  })
}

// 效益考核 成本 预算报表
export function benefitReportForms(params) {
  return request({
    url: '/jxCost/benefitReportForms',
    method: 'post',
    data: params
  })
}

// 成本收入导出模板
export function exportExcelJxCostDemo(params) {
  return request({
    url: `/jxCost/exportExcelJxCostDemo?type=${params.type}`,
    method: 'post',
    responseType: 'blob'
  })
}

// 成本收入 导入
export function importExcelJxCost(params) {
  return request({
    url: '/jxCost/importExcelJxCost',
    method: 'post',
    // responseType: 'blob',
    data: params
  })
}

// 成本收入 导出
export function downloadTemplate(params) {
  return request({
    url: '/jxCost/downloadTemplate',
    method: 'post',
    responseType: 'blob',
    data: params
  })
}

// 成本收入 修改
export function modifyPerformance(params) {
  return request({
    url: '/jxCost/modifyPerformance',
    method: 'post',
    data: params
  })
}

// 效益考核 收入明细 报表
export function queryInComeVos(params) {
  return request({
    url: '/jxCost/queryInComeVos',
    method: 'post',
    data: params
  })
}

// 收入明细 导出
export function exportExcelJXInCome(params) {
  return request({
    url: '/jxCost/exportExcelJXInCome',
    method: 'post',
    responseType: 'blob',
    data: params
  })
}

// 得分明细 查询
export function queryByYear(params) {
  return request({
    url: '/jxObjectiveAssessment/queryByYear',
    method: 'post',
    data: params
  })
}

// 得分明细 编辑
export function editModifyPerformance(params) {
  return request({
    url: '/jxObjectiveAssessment/modifyPerformance',
    method: 'post',
    // responseType: 'blob',
    data: params
  })
}

// 得分明细 导出
export function exportExcelJxObjectiveAssessment(params) {
  return request({
    url: '/jxObjectiveAssessment/exportExcelJxObjectiveAssessment',
    method: 'post',
    responseType: 'blob',
    data: params
  })
}

// 得分明细 下载模板
export function exportExcelJxObjectiveAssessmentDemo(params) {
  return request({
    url: '/jxObjectiveAssessment/exportExcelJxObjectiveAssessmentDemo',
    method: 'post',
    responseType: 'blob',
    data: params
  })
}

// 得分明细 导入
export function importExcelJxObjectiveAssessment(params) {
  return request({
    url: '/jxObjectiveAssessment/importExcelJxObjectiveAssessment',
    method: 'post',
    // responseType: 'blob',
    data: params
  })
}
